package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_link;

import cn.com.api.mapper.ApiU_linkMapper;

import cn.com.api.service.ApiU_linkService;

/**
 * 
 **/
@Service
public class U_linkServiceImplBase {
	@Autowired
	private ApiU_linkMapper apiU_linkMapper;

	// 根据id获取
	public ApiU_link findU_linkById(Integer id) {
		ApiU_link u_link = apiU_linkMapper.findU_linkById(id);
		return u_link;
	}

	// 查看数据集
	public List<ApiU_link> findU_links() {
		List<ApiU_link> u_links = apiU_linkMapper.findU_links();
		return u_links;
	}

	public List<ApiU_link> findU_linksByGroupId(Integer id) {
		List<ApiU_link> u_links = apiU_linkMapper.findU_linksByGroupId(id);
		return u_links;
	}

	// 添加
	public int insertU_link(ApiU_link u_link) {
		int ret_I = apiU_linkMapper.insertU_link(u_link);
		return ret_I;
	}

	// 修改
	public int updateU_link(ApiU_link u_link) {
		int ret_I = apiU_linkMapper.updateU_link(u_link);
		return ret_I;
	}

	// 删除
	public int deleteU_link(Integer id) {
		int ret_I = apiU_linkMapper.deleteU_link(id);
		return ret_I;
	}

	// Foreign keys revelant

	// region Indexs revelant

}
